﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WAD.WEB.AppCode
{
    public class PassportAjax : AjaxBase
    {
        protected override void PageLoad()
        {
            base.PageLoad();
            if (Request.Cookies["userid"] != null)
            {
                try
                {
                    UserId = Convert.ToInt32(Request.Cookies["userid"].Value);
                }
                catch { UserId = 0; }
            }
        }

        protected string GetVersion(int id)
        {
            return WAD.BLL.VersionBLL.GetVersion(id);
        }
    }
}